# -*- coding: utf-8 -*-

from question import Question
from answerWidgets import AnswerLine


class Short_Answer(Question):
    def __init__(self):
        super(Short_Answer, self).__init__()

        self.questionName = self.tr("Short Answer")
        self.setObjectName("Short_Answer")
        self.answers.setScheme((AnswerLine,))
        self.answers.setPrefix("=")
        self.defaultAnswers = 1

    def validateQuestion(self):
        """ kontrola validity otazky """

        self.basicValidate()
